﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MovieRental.Entities;
using MovieRental.SqlRepositoryLibrary.Converters;
using MovieRental.DataInterfaces;

namespace MovieRental.SqlRepositoryLibrary
{
    public class SqlMediaTypeRepository : SqlRepository<MediaTypeInfo, Guid, MediaTypeConverter>, IMediaTypeRepository
    {
    
        public SqlMediaTypeRepository(string connectionString) : base(connectionString)
        {
        }

        protected override bool Contains(MediaTypeInfo entity)
        {
            return Contains(entity.Id);
        }

        public override void Delete(MediaTypeInfo entity)
        {
            Delete(entity.Id);
        }

    }
}
